package com.trust.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.trust.entity.MedicineStandard;
import com.trust.mapper.MedicineStandardMapper;
import com.trust.service.MedicineStandardService;
import org.springframework.stereotype.Service;


@Service
public class MedicineStandardServiceImpl extends ServiceImpl<MedicineStandardMapper, MedicineStandard> implements MedicineStandardService {
    @Override
    public void removeByMedicineId(Integer medicineId) {
        LambdaQueryWrapper<MedicineStandard> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(MedicineStandard::getMedicineId, medicineId);
        this.remove(wrapper);
    }
}
